package cn.iphone.NPlayer.dto;

import cn.iphone.NPlayer.util.AssertUtil;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
	public class SmsCodeDto {
	    //手机号码
		@Pattern(regexp = AssertUtil.PHONE_FORMAT, message = "手机号格式不正确")
	    private String phone;
	    //图形验证码
		@NotEmpty(message = "图形验证码不能为空")
	    private String imageCode;
	    //图形验证码的key
		@NotEmpty(message = "key不能为空")
	    private String imageCodeKey;
	}